import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router'

const router = createRouter({
  // history: createWebHistory(import.meta.env.BASE_URL),
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'findEnterprise',
      component: () => import('../views/findEnterprise.vue'),
      meta: {
        title: '',
        keepAlive: false
      }
    },
    {
      path: '/enterpriseDetail',
      name: 'enterpriseDetail',
      component: () => import('../views/enterpriseDetail.vue'),
      meta: {
        title: '',
        keepAlive: false
      }
    },

  ]
})

export default router
